Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: DOJO Customization
Feedback Type: Question
Product Area: Domino Server
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Always

I have had some sucess with modifications to the DOJO editor as it ships with Domino. I have been able to add links and images to the toolbar. I have also been able to add the view source and the full screen capability but the icon does not show on the toolbar. I need to be able to add a table and change the list of fonts. Below is a copy of my data\domino\template\dojo-1.4.3\dom_richtext.htm.
I should be able to make the table work by just adding the appropriate dojo.require (dojox.editor.plugins.TablePlugins) statement and the short name (insertTable) but that does not work. I also cannot find an example of how to change the list of fonts. Any ideas would be appriciated.


<!-- template dom_richtext.htm -->
&DOMINO_CTRL_HEAD;
&DOMINO_CTRL_INCLUDE;dom_common.htm&DOMINO_CTRL_INCLUDE_END;
<script type="text/javascript">
dojo.require('ibm.domino.widget.layout.DominoRichText');
dojo.require("dijit._editor.plugins.LinkDialog");
dojo.require("dijit._editor.plugins.FullScreen");
dojo.require("dijit._editor.plugins.ViewSource");
var rteList = new Array();
function GetJSEditorData() {
for (var j=0; j < rteList.length; j++) {
rteList[j](null);
}
return true;
};
</script>&DOMINO_CTRL_HEAD_END;
&DOMINO_CTRL_FORM_ID;&DOMINO_CTRL_FORMNAME;&DOMINO_CTRL_FORM_ID_END;
&DOMINO_CTRL_BODY;<div class="domino-richtext"><textarea name="tb&DOMINO_CTRL_FLDNAME;" id="tb&DOMINO_CTRL_FLDNAME;">&DOMINO_CTRL_FLDVALUE;</textarea></div>
&DOMINO_CTRL_BODY_END;
&DOMINO_CTRL_FLD_INIT;
<input name="&DOMINO_CTRL_FLDNAME;" type="hidden" value="" ID="&DOMINO_CTRL_FLDNAME;">
<script type="text/javascript">
function get&DOMINO_CTRL_FLDNAME;(evt) {
dojo.byId('&DOMINO_CTRL_FLDNAME;').value=dijit.byId('tb&DOMINO_CTRL_FLDNAME;').getValue(false);
return true;
}
</script>
<script type="text/javascript">
dojo.addOnLoad(function() {
var rte=new ibm.domino.widget.layout.DominoRichText({extraPlugins: ['|', 'insertImage', 'createLink', 'formatBlock', 'fullscreen', 'viewsource', '|']}, dojo.byId('tb&DOMINO_CTRL_FLDNAME;'));
rte.init();
rteList.push(get&DOMINO_CTRL_FLDNAME;);
dojo.connect(dojo.byId('&DOMINO_CTRL_FORMNAME;'), "onsubmit", null, get&DOMINO_CTRL_FLDNAME;, true);});
</script>&DOMINO_CTRL_FLD_INIT_END;


Feedback number WEBB8MBRCV created by ~Joseph Zenjumimarli on 10/04/2011

Status: Open
Comments:

DOJO Customization (~Joseph Zenjumi... 4.Oct.11)
. . you could also try the CKEditor (~Paul Minalitod... 5.Oct.11)
. . . . That was my first choice (~Joseph Zenjumi... 6.Oct.11)
. . . . . . changed the font? can you elaborat... (~Paul Minalitod... 6.Oct.11)
. . . . . . . . Font changes (~Joseph Zenjumi... 6.Oct.11)
. . . . . . . . . . mospace fonts work for me / I'll lo... (~Paul Minalitod... 7.Oct.11)
. . . . . . . . . . the rich text html needs to be in a... (~Paul Minalitod... 7.Oct.11)
. . . . . . . . . . . . Thanks for the help (~Joseph Zenjumi... 11.Oct.11)
. . . . . . . . . . . . . . glad I could be of help (~Paul Minalitod... 11.Oct.11)
. . . . . . . . Yet another problem with using the ... (~Joseph Zenjumi... 13.Oct.11)
. . . . . . . . . . my guess is that CKeditor is affect... (~Paul Minalitod... 13.Oct.11)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS